import { ApiCall } from "tsrpc";
import { ReqLook, ResLook } from "../../../shared/master/auction/PtlLook";
import { player } from "../../../model/fight/body/player";
import manage_auction from "../../model/manage/manage_auction";
import { template } from "../../../shared/master/MsgAction";

export default async function (call: ApiCall<ReqLook, ResLook>) {
    call.succ({})
    let user = call.req._player as player;
    let data = manage_auction.look(user)
    user.sendMsg(template.拍卖行,data)
}